import {
  mongoDB,
  type_mongoDB,
} from '../../../../../conect_mongoDB_class_laugh_node';
import { mdb_prefix_global } from '../../../../global/DataDefine/sourceData';
import { spacename_audio } from '../../api/user/api/upload/api/music/api/file_audio/DataDefine/sourceData';
import { spacename_lyric } from '../../api/user/api/upload/api/music/api/file_lyric/DataDefine/sourceData';
import { spacename_score } from '../../api/user/api/upload/api/music/api/file_score/DataDefine/sourceData';

// 2025.08.02 18:15:15 星期六 晴

/**
 * global_audio 身份表 -- identity 表
 */
export function get_global_db_audio() {
  return mongoDB.collection(`${mdb_prefix_global}_${spacename_audio}`);
}

// 2025.08.02 18:15:15 星期六 晴

/**
 * global_lyric 身份表 -- identity 表
 */
export function get_global_db_lyric() {
  return mongoDB.collection(`${mdb_prefix_global}_${spacename_lyric}`);
}

// 2025.08.10 17:04:04 星期日 晴

/**
 * global_score 身份表 -- identity 表
 */
export function get_global_db_score() {
  return mongoDB.collection(`${mdb_prefix_global}_${spacename_score}`);
}

const path_global_db_type = 'type';

/**
 * 标签 描述符 表
 */
export const global_db_type = type_mongoDB.collection(path_global_db_type);
